package com.jeeplus.test.jlnu.tableManage.mapper;

import com.jeeplus.test.jlnu.tableManage.domain.entity.JlnuTableManage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 动态表头(JlnuTableManage)表数据库访问层
 *
 * @author ChiHongYu
 * @since 2025-02-17 15:16:35
 */
@Mapper
public interface JlnuTableManageMapper {


    JlnuTableManage queryById(Integer id);


    JlnuTableManage getByOffice(String officeId,
                                String type);


    List<JlnuTableManage> page(@Param("param") Map<String, Object> param,
                               @Param("limit1") int limit1,
                               @Param("limit2") int limit2);


    int count(@Param("param") Map<String, Object> param);


    boolean insert(JlnuTableManage jlnuTableManage);


    boolean update(JlnuTableManage jlnuTableManage);


    boolean deleteById(Integer id);


    int changeUseById(Integer id, String useState);

    JlnuTableManage getByTypeOnly(String type);
}
